export function viewData() {
    var e = 0,
        l = 0,
        i = 0,
        g = 0,
        f = 0,
        m = 0;
    var j = window,
        h = document,
        k = h.documentElement;
    e = k.clientWidth || h.body.clientWidth || 0;
    l = j.innerHeight || k.clientHeight || h.body.clientHeight || 0;
    g = h.body.scrollTop || k.scrollTop || j.pageYOffset || 0;
    i = h.body.scrollLeft || k.scrollLeft || j.pageXOffset || 0;
    f = Math.max(h.body.scrollWidth, k.scrollWidth || 0);
    m = Math.max(h.body.scrollHeight, k.scrollHeight || 0, l);
    return {
        scrollTop: g,
        scrollLeft: i,
        documentWidth: f,
        documentHeight: m,
        viewWidth: e,
        viewHeight: l
    };
}